<?php
class Application_Model_Agent extends Application_Model_DomainObject{
	
        protected $_id;//
        protected $_nikename;//真实姓名
        protected $_email;//邮箱
        protected $_datecreated;//注册时间
        protected $_lastLogin;//最后登录时间
        protected $_loginip;//最后登录ip
        protected $_logintimes;//登录次数
        
        public static function getFilter($referrerId,$pagesize,$pageindex)
        {
            $where = array();
            if($referrerId){
                $where[" referrerId = "] = $referrerId;
                $where[" OR id = "] = $referrerId;
                return Application_Model_Agent::getDao()->queryPage($where,'id desc',$pagesize,$pageindex);
            }
        }
        
        
}